package com.htgd.gardenexpo.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author: 王秀田
 * @date: 2024/11/21 15:52
 * @description: 设备支付订单表
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ge_con_meal_order")
@ApiModel(value="GeConMealOrder对象", description="设备支付订单表")
public class GeConMealOrder implements Serializable {

    private static final long serialVersionUID = -1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "openId")
    private String openId;

    @ApiModelProperty(value = "订单号")
    private String orderNum;

    @ApiModelProperty(value = "消费总积分")
    private Integer totalIntegral;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "状态（'0':进行中，'1':已结束）")
    private String status;

    @ApiModelProperty(value = "设备类型（'1'：望眼镜，'2'：座椅）")
    private String type;

    @ApiModelProperty(value = "套餐ID")
    private String mealId;

    @ApiModelProperty(value = "设备ID")
    private String deviceId;

    @ApiModelProperty(value = "设备名称")
    private String name;

    @ApiModelProperty(value = "用户名")
    private String wxName;

    @ApiModelProperty(value = "用户手机号")
    private String phone;

    @ApiModelProperty(value = "设备自研编号")
    private String num;

    @ApiModelProperty(value = "分钟")
    private Integer minute;

    @ApiModelProperty(value = "设备类型ID")
    private String deviceType;

    @ApiModelProperty(value = "设备剩余时长")
    @TableField(exist = false)
    private Integer time;
}
